<#if userContext?exists>
<#if userContext.user?exists>
${userContext.user.username} ${userContext.user.name} <a href="/j_spring_security_logout">Logout</a>
</#if>
</#if>